package com.rocket.mq;


import com.rocket.route.TopicKey;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @Author huan
 * @Date 2025/6/30
 */
@Service
@RocketMQMessageListener(topic = TopicKey.MQ_KEY_NOTICE, consumerGroup = "note_consumer_group")
public class NoticeConsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String message) {
        System.out.println("Received message: " + message);
    }
}
